Arexx (2/45)

From:Steve & Ulli Bowman
Date:11 Aug 2001 at 07:07:22
Subject:Re: Back to my "ITERATE" problem

G'day Andrew Bruno,

On 11-Aug-01, on the subject of "[arexx] Back to my "ITERATE" problem",
you spoke thus:

> /* */
>
> ECHO 'Starting the program.'
>
> test.1 = "ANDREW"
> test.2 = "BARNEY"
> test.3 = "CHARLIE"
> test.4 = "DANNIEL"
> test.5 = "EDWARD"
> test.6 = "FREDERICK"
>
> name = "EDWARD"
>
> DO i = 1 to 6
> IF name = test.i THEN
> DO
> ECHO 'Found'
ECHO i <--- Add this
> ITERATE i
> END
> ECHO i
> END
>
> ECHO 'Exiting program'
>
>
>
> The ITERATE i line is added later but this is what I get with the line
> in:
>

The ITERATE command transfers control back to the DO loop without
executing your original ECHO command.

Add the extra Echo command as above so i is echoed in both cases of true
and false.

> So I guess the ITERATE command is not doing what I want.
>

Or not what you expected ;^).



Steve Bowman - Sydney, Australia

"Size matters not. Look at me. Judge me by my size, do you? Hmmm?"
-- Yoda

------------------------ Yahoo! Groups Sponsor ---------------------~-->
Small business owners...
Tell us what you think!
http://us.click.yahoo.com/vO1FAB/txzCAA/ySSFAA/saFolB/TM
---------------------------------------------------------------------~->

ARexx mailing list - No flames, no overquoting, no crossposting.
Unsub: Blank mail to mailto:arexx-unsubscribe@yahoogroups.com

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/